package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import play.db.ebean.Model;

@Entity
@Table(name = "permissions")
public class Permission extends Model implements be.objectify.deadbolt.core.models.Permission {
	
	private static final long serialVersionUID = 1L;
	
	@Column(name = "id")
	@GeneratedValue(generator = "SEQ_TABLE", strategy = GenerationType.TABLE)
	@Id
	@TableGenerator(name = "SEQ_TABLE")
	private long id;
	
	@Column(name = "permission")
	private String value;
	
	public long getId() {
		return id;
	}
	
	@Override
	public String getValue() {
		return value;
	}
	
}
